package com.m2bshop.shop.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;


@Controller
public class TestController {

    //跳转到注册页面
    @RequestMapping("/testlist")
    public String userRegister() {

        return "testlist";
    }

    @RequestMapping(value = "/list",method = RequestMethod.POST)
    @ResponseBody
    public Map<String,Object> getList(Page page, int limie, HttpServletRequest request,
                                      @RequestParam(name="name",required = false,defaultValue = "") String name){
        HashMap<String, Object> ret = new HashMap<>();
        return null;
    }
}
